﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RealWorldObjects
{
    class Faculty
    {
        public string facultyName;
        public List<Chair> chairs = new List<Chair>();
        public static int facultyCount = 1000;

        public static Faculty GenerateRandomFaculty()
        {
            Faculty faculty = new Faculty();
            faculty.facultyName = "Faculty " + facultyCount;
            for (int i =0; i<3; i++)
            {
                Chair chair = Chair.GenerateRandomChair();
                faculty.chairs.Add(chair);
            }
            return faculty;
        }
        public static Random rndFacultyGenerator = new Random();
        public void RndFacultyGenerate()
        {
            facultyName = "Faculty " + facultyCount;
            for (int i = 0; i < 3; i++)
            {
                Chair chair = Chair.GenerateRandomChair();
                chairs.Add(chair);
            }
        }
        public void PrintFacultyToConsole()
        {
            Console.WriteLine("Faculty name: {0}", facultyName);
            foreach (var chair in chairs)
            {
                chair.PrintChairToConsole();
            }
        }
    }
}
